function initGithubCharts() {
    if (!githubChartsInited) {
        githubChartsInited = !0;
       
	   //初始化echarts实例
								   $.getJSON("http://nu.51g3.com/?m=api&a=tu&callback=?",function(d){
                                  var v = d['total'];
								var myChart = echarts.init(document.getElementById('main'));
								option = {
									tooltip: {
										formatter: "{a} <br/>{b} : {c}"
									},
									series: [{
										name: '云新闻',
										type: 'gauge',
										//center: ['22%', '40%'],
										detail: {
											formatter: '{value}'
										},
										textStyle: {
											color: '#c90'
										},
										axisLine: {
											lineStyle: {
												width: 10
											}
										},
										splitNumber: 5,
										max: 120,
										data: [{
											value: v,
											name: '今日发布云新闻企业'
										}],
										radius: '90%',
										axisLabel: {
											show: false,
										},
								//		animationDurationUpdate: 10000,
									}],
							//		animationDuration: 10000,
								};
								myChart.setOption(option);
								 });
						
		
					
								//初始化echarts实例
								var myChart = echarts.init(document.getElementById('mains'));
								option = {
									tooltip: {
										formatter: "{a} <br/>{b} : {c}"
									},
									series: [{
										name: '云新闻',
										type: 'gauge',
										//	center: ['68%', '40%'],
										detail: {
											formatter: '{value}'
										},
										textStyle: {
											color: '#c90'
										},
										axisLine: {
											lineStyle: {
												width: 10
											}
										},
										splitNumber: 5,
										max: 30000,
										data: [{
											value: 17314,
											name: '今日发布云新闻数据'
										}],
										radius: '90%',
										axisLabel: {
											show: false,
										},
									//	animationDurationUpdate: 10000,
									}],
								//	animationDuration: 10000,
								};
								myChart.setOption(option);
	   
    }
}

// yibiaopan over
function initSizeCharts() {
    if (!sizeChartInitialized) {
        sizeChartInitialized = !0;
        var t = echarts.init($("#file-size-chart")[0]),
        e = ["-", {
            value: 0,
            itemStyle: {
                normal: {
                    color: "#fe7200"
                }
            }
        },
        {
            value: 0,
            itemStyle: {
                normal: {
                    color: "#a9334d"
                }
            }
        },
		
		{
            value:"6399728",//是否显示数据
            itemStyle: {
                normal: {
                    color: "#00b4ff"
                }
            }
        },
		
        "-"];
        t.setOption({
            animation: !1,
            grid: {
                left: -20,
                right: 20,
                top: 4,
                bottom: 30
            },
            textStyle: {
                fontSize: 14
            },
            xAxis: {
                axisLine: {
                    lineStyle: {
                        color: "#ccc"
                    }
                },
                axisLabel: {
                    textStyle: {
                        fontSize: 14,
                        color: "#999"
                    }
                },
                axisTick: {
                    show: !1
                },
                splitLine: {
                    show: !1
                },
                data: ["", "", "", ""]
            },
            yAxis: {
                min: 0,
                max: 7346490,
                splitNumber: 4,
                splitLine: {
                    lineStyle: {
                        color: "#eee"
                    }
                },
                axisLine: {
                    show: !1
                },
                axisLabel: {
                    show: !1
                },
                axisTick: {
                    show: !1
                }
            },
            series: [{
                type: "bar",
                barCategoryGap: "50%",
                label: {
                    normal: {
                        formatter: "{c} ",
                        show: !0,
                        position: "top"
                    }
                },
                data: e
            }]
        });
        var i = new echarts.graphic.Group,
        a = new echarts.graphic.Group;
	//	o = new echarts.graphic.Group;
        t.getZr().add(i),
		t.getZr().add(a),
      //  t.getZr().add(o),
        i.animate().when(3e3, {
            position: [3046490, 3046490]
        }).during(function() {
            e[1].value = Math.round(i.position[0]),
            e[2].value = Math.round(a.position[1]),
		//	e[3].value = Math.round(o.position[2]),
            t.setOption({
                series: [{
                    data: e
                }]
            })
        }).start(),
        a.animate().when(2e3, {
            position: [5046490, 5046490]
        }).start(),
		// o.animate().when(3e3, {
//            position: [6546490, 6546490]
//        }).start(),
        $(window).on("resize",
        function() {
            t.resize()
        })
    }
}
function drawCanvasOne() {
    var t = document.getElementById("wave"),
    e = echarts.init(t),
    i = e.getZr(),
    a = e.getWidth(),
    c = e.getHeight(),
    o = new echarts.graphic.Group;
    i.add(o);
    var n = 3;
    800 > a && (n = 2);
    for (var r = 0; 3 > r; r++) {
        for (var s = [], l = 0; n + 1 >= l; l++) {
            var h = c / 10 * r + c / 6,
            d = Math.random() * c / 8 + h,
            g = c - Math.random() * c / 8 - h,
            m = [[2 * l * a / n / 2, r % 2 ? d: g], [(2 * l + 1) * a / n / 2, r % 2 ? g: d]];
            s.push(m[0], m[1])
        }
        var u = new echarts.graphic.Polyline({
            shape: {
                points: s,
                smooth: .4
            },
            style: {
                stroke: "#fff",
                opacity: 1 / (r + 1),
                lineWidth: 1.2 / (r + 1) + .8
            },
            silent: !0,
            position: [ - r * a / 8, 35 * -(r - .5)]
        }),
        y = new echarts.graphic.Rect({
            shape: {
                x: 0,
                y: 0,
                width: 0,
                height: c
            },
            position: [r * a / 8, 0]
        });
        o.add(u),
        y.animateTo({
            shape: {
                width: a
            }
        },
        2e3, 800 * Math.random()),
        u.setClipPath(y),
        n += 1
    }
    $(window).on("resize",
    function() {
        var t = e.getWidth(),
        i = e.getHeight();
        e.resize();
        var a = e.getWidth(),
        c = e.getHeight();
        y.setShape({
            width: a,
            height: c
        });
        var n = a / t,
        r = c / i;
        o.eachChild(function(t) {
            t.position[0] *= n,
            t.position[1] *= r,
            t.shape.points.forEach(function(t) {
                t[0] *= n,
                t[1] *= r
            }),
            t.dirty(!0)
        })
    })
}
function drawLogo() {
    function t() {
        n.style.stroke = null,
        r.style.stroke = null;
        var t = r.getBoundingRect(),
        a = t.width / t.height;
        e.style.height = .206 * e.clientWidth + "px",
        i.resize();
        var c = i.getWidth(),
        o = i.getHeight(),
        l = (n.getBoundingRect(), o / 1.6);
        n.attr("position", [.5, 1.15]),
        r.attr("position", [4.3, 1]),
        r.attr("scale", [1.3 * a, 1.3 * a]),
        s.attr("scale", [l, l]);
        var d = s.getBoundingRect();
        h = h || [s.position[0], s.position[1]],
        s.position[0] = h[0] - d.width * l / 2 + c / 2,
        s.position[1] = h[1] + d.height * l / 2 - o / 2,
        n.style.stroke = "#B23A59",
        r.style.stroke = "#fff"
    }
  
    n = echarts.graphic.makePath(c, {
        silent: !0
    },
    {
        x: -.5,
        y: -.5,
        width: 1,
        height: 1
    },
    "center");
    n.setStyle({
        stroke: "#AA314D",
        fill: "rgba(178, 58, 89, 0)",
        lineWidth: 1,
        strokeNoScale: !0
    });
    var r = echarts.graphic.makePath(o, {
        silent: !0
    },
    {
        x: -.5,
        y: -.5,
        width: 1,
        height: 1
    },
    "center");
    r.setStyle({
        stroke: "#fff",
        fill: "rgba(255, 255, 255, 0)",
        lineWidth: 1,
        strokeNoScale: !0
    });
    var s = new echarts.graphic.Group;
    s.add(n),
    s.add(r),
    t(),
    a.add(s);
    var l = 220 / s.scale[0] / r.scale[0] / (1e3 / i.getWidth());
    n.dashOffset = 0,
    n.animate().when(1500, {
        dashOffset: l
    }).during(function() {
        var t = n.dashOffset;
        n.setStyle({
            lineDash: [t, l - t]
        }),
        r.setStyle({
            lineDash: [t, l - t]
        })
    }).done(function() {
        n.animateTo({
            style: {
                fill: n.style.stroke
            }
        },
        1500,
        function() {
            n.setStyle({
                fill: "#AA314D"
            }),
            n.animateTo({
                rotation: .6
            },
            800, "bounceOut")
        }),
        r.animateTo({
            style: {
                fill: r.style.stroke
            }
        },
        1500)
    }).start();
    var h;
    $(window).resize(t)
} !
function() {
    $(".lowerie").length
} ();
var gb = {
    colors: {
        white: "#FFF",
        whiteLight: "rgba(255, 255, 255, 0.2)",
        whiteLighter: "rgba(255, 255, 255, 0.1)",
        primary: "#556fb5",
        primaryLight: "#889acb"
    },
    homeData: [0, 0, 0, 0, 200, 449, 675, 723, 724, 655, 792, 846, 840, 927, 687, 1148, 1172, 1332, 1370, 1730, 1786, 1820, 1920, 3200, 2200, 2400]
},
githubChartsInited = !1,
sizeChartInitialized = !1;
//云搜索
$.getJSON("http://tongji.51g3.com/?m=data&a=nw&rows=20&callback=?",function(d){
      $("#total_word").text(d['total']);
      $("#now_word").text(d['total']);
      if (d.rows!="") {
        for (var i=0; i<d.rows.length; i++) {
          var data = d.rows[i];
          var a = [], li = [];
          a.push('<a href="javascript:;">'+data.word.slice(0-10)+'...</a>');
          li.push('<li><a href="javascript:;">'+data.word+'</a></li>');
          $("#Runtext").append(a.join(''));
          $("#word_list").append(li.join(''));
        }
      }
    });
//今日发布云新闻企业
  $.getJSON("http://nu.51g3.com/?m=api&a=tu&callback=?",function(d){	
    $("#company").text(d['total']);
    });
//实时关键词
$.getJSON("http://tongji.51g3.com/?m=data&a=nw&rows=20&callback=?",function(d){
    //  $("#totalnum").text(d['total']);
	  document.getElementById('purple totalnum').setAttribute("data-to",d['total']);
    });

   //关键词数量
   $.getJSON("http://tongji.51g3.com/?m=data&a=tw&callback=?",function(d){
    //  $("#Numb").text(d['total']);
	   document.getElementById("Numb purple").setAttribute("data-to",d['total']);
    });
	   //关键词数量
   $.getJSON("http://tongji.51g3.com/?m=data&a=tw&callback=?",function(d){
      $("#shuliang").text(d['total']);
    });
	//今日用户访问量
    $.getJSON("http://tongji.51g3.com/?m=data&a=vl&callback=?",function(d){
	 $("#visit").text(d['total']);
	 });
	 //今日用户搜素量
	 $.getJSON("http://tongji.51g3.com/?m=data&a=nip&callback=?",function(d){
	 $("#seacher").text(d['total']); 
	 });
	// 今日用户发布
	 $.getJSON("http://nu.51g3.com/?m=api&a=tl&callback=?",function(d){
	 $("#release").text(d['total']); 
    });
  // 统计用户数
   $.getJSON("http://tongji.51g3.com/?m=data&a=ut&callback=?",function(d){
//	 $("#custor").text(d['total']); 
	document.getElementById('count-number custor').setAttribute("data-to",d['total']);	
    });  	

//秀场	
		$(document).ready(function(){
					var url="http://show.51g3.com/index.php?c=scene&a=syslist_eq&time=1462431981316&callback=?";
					$(function(){
					$.getJSON(url,function(data){
						i=0;
						ul_text='';
						nums=data.row;
						for(var j in nums){
								i++;
								div_id="output"+i;
								if(i<5){		
								ul_text+="<div class='col-md-3 col-sm-4 col-xs-6 '><a href="+nums[j].url+" class='thumb' target='_blank'><div class='boximg'><img src="+nums[j].imgSrc+"><div class='ewm'><div id="+div_id+" class='div_id'></div></div></div><div class='caption text-center'><span>"+nums[j].title.substring(0,12)+"</span></div><div class='boxdes hidden-xs hidden-sm'><div class='col-md-6 col-xs-6'>扫描二维码</div><div class='col-md-6 col-xs-6 view'>预览</div><div class='clearfix'></div></div></a></div>";
																}
								else{			
						ul_text+="<div class='col-md-3 col-sm-4 col-xs-6 hidden-xs'><a href="+nums[j].url+" class='thumb' target='_blank'><div class='boximg'><img src="+nums[j].imgSrc+"><div class='ewm'><div id="+div_id+" class='div_id'></div></div></div><div class='caption text-center'><span>"+nums[j].title.substring(0,12)+"</span></div><div class='boxdes hidden-xs hidden-sm'><div class='col-md-6 col-xs-6'>扫描二维码</div><div class='col-md-6 col-xs-6 view'>预览</div><div class='clearfix'></div></div></a></div>";	
								}
					}
						$('#in_tables').html(ul_text)
							u=0;
							for(var j in nums){
									u++;
									fg="#output"+u;
									$(fg).qrcode(nums[j].url);
							}

						
					})
					}); 
				  });
				  	jQuery(function(){
											jQuery('#output').qrcode("http://jetienne.com");
										

										})